//
//  TaskWithGetSales.m
//  DuBai
//
//  Created by darktm on 14-3-19.
//  Copyright (c) 2014年 darktm. All rights reserved.
//

#import "TaskWithGetSales.h"
#import "Sales.h"

@implementation TaskWithGetSales


-(void)prepare{
    NSMutableDictionary *mDic = [NSMutableDictionary dictionary];
    
    [mDic setValue:self.goodid forKey:@"id"];
    [self startAsyncWithParams:mDic withMethod:@"GET" withURL:[Configure getSales]];
}
-(id)parese{
    
    NSMutableArray * ret = [NSMutableArray array];
    
    for (NSDictionary *dic in self.rcvData) {
        Sales *sale = [[Sales alloc] initWithReflectData:dic];
        [ret addObject:sale];
    }
    
    return ret;
}

@end
